package cn.bdqn.hospital.dao;

import cn.bdqn.hospital.entity.DrugDose;

import java.sql.SQLException;
import java.util.List;

public interface DrugDoseDao {
    /**
     * 查询所有剂量
     * @return
     * @throws SQLException
     */
    public List<DrugDose> getAll() throws SQLException;

    /**
     *通过id查询剂量
     * @param drugId
     * @return
     * @throws SQLException
     */
    public DrugDose getDrugDoseById(Integer drugId) throws SQLException;

    /**
     * 新增剂量
     * @param drugDose
     * @return
     * @throws SQLException
     */
    public int add(DrugDose drugDose) throws  SQLException;

    /**
     * 修改剂量
     * @param drugDose
     * @return
     * @throws SQLException
     */
    public int update(DrugDose drugDose) throws  SQLException;

    /**
     * 通过id删除
     * @param drugId
     * @return
     * @throws SQLException
     */
    public int delete(Integer drugId) throws  SQLException;
}
